﻿<UserControl x:Class="OnlineVideos.ShowVideos"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ListBox x:Name="lbxSongsList" Grid.Row="0" Margin="0,-30,0,8"  SelectionChanged="lbxSongsList_SelectionChanged" Foreground="White" VerticalAlignment="Top"  >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <toolkit:ContextMenuService.ContextMenu>
                            <toolkit:ContextMenu Opened="ContextMenu_Opened" x:Name="ShowVideoContaxt" >
                                <toolkit:MenuItem   Click="btnpintostart_Click" x:Name="Pin" >
                                </toolkit:MenuItem>
                                <toolkit:MenuItem Header="add to favorites" x:Name="favorites"  Click="btnFavSong_Click"/>
                                <toolkit:MenuItem Header="report broken link" Click="btnBrokenSong_Click">
                                </toolkit:MenuItem>
                                <toolkit:MenuItem Header="share linK" Click="sharelink_Click">
                                </toolkit:MenuItem>
                                <toolkit:MenuItem Header="{Binding Ratetitle}" x:Name="Rating" Click="ratelink_Click">
                                </toolkit:MenuItem>
                                <toolkit:MenuItem Header="delete link" x:Name="del" Click="del_Click_1">
                                </toolkit:MenuItem>
                            </toolkit:ContextMenu>
                        </toolkit:ContextMenuService.ContextMenu>

                        <Image Source="/Images/ArrowImg.png"  Height="43" Width="43" VerticalAlignment="Center" Margin="10,0,20,0"  Tag="{Binding SongID}"/>
                        <TextBlock Text="{Binding Title}" Name="tblkchno"  Width="400" FontSize="28" Foreground="White" VerticalAlignment="Center" TextWrapping="Wrap" Tag="{Binding Link}" Height="80" Margin="0,30,0,0"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <toolkit:PerformanceProgressBar VerticalAlignment="Top" x:Name="MyProgressBar1" Tag="{Binding Link}"  
                                                 IsIndeterminate="False"  Width="450"  Background="Black" Foreground="Red" HorizontalAlignment="Left">
        </toolkit:PerformanceProgressBar>
        <Canvas>
            <TextBlock Canvas.Top="200" TextWrapping="Wrap" Canvas.Left="30" Foreground="White" FontSize="28" x:Name="tblkFavNoSongs" Visibility="Collapsed"/>
            <TextBlock Canvas.Top="260" TextWrapping="Wrap" Canvas.Left="30" Foreground="White" FontSize="28" x:Name="tblkFavNoSongsForVideoMix" Visibility="Collapsed"/>

        </Canvas>
        
    </Grid>
    
</UserControl>
